<?php

class Application_Form_RecoverPassword extends Zend_Form {

    public function init() {



        $password = new Zend_Form_Element_Password('password', array(
                    'label' => 'Nowe Hasło'
                ));
        $password->addValidator('identical', false, array('repassword', 'Podaj takie samo hasło'));
        $password->setRequired(true);

        $repassword = new Zend_Form_Element_Password('repassword', array(
                    'label' => 'Powtórz nowe'
                ));



        $this->addDisplayGroup(array(
            $password, $repassword
                ), 'gr-main', array(
            
        ));
        $submit = new Zend_Form_Element_Submit('submitPassword', array(
                    'label' => 'Wyślij',
                    'class' => 'ui-form-button'
                ));

        $this->addDisplayGroup(array(
            $submit
                ), 'gr-submit', array(
            'order' => 999,
                    'class' => 'submitPassword'
        ));
    }

}